#ifndef _API__h
#define _API__h

#include "comm.h"

extern char *api_get_value(struct http_message *hm);
extern char *api_set_value(struct http_message *hm);
extern void api_import_cfg(struct mg_connection *nc, int ev, void *p);
extern void api_update_plugin(struct mg_connection *nc, int ev, void *p);
extern void websocket_pkt_send(char *buf);

extern int is_equal(const struct mg_str *s1, const struct mg_str *s2);
extern int is_websocket(const struct mg_connection *nc);

#endif